<?php

include_once 'Mp3.class.php';

//implementation array indices
$mesMp3[] = new Mp3("3 Y'a de la joie","Charles Trenet", 3.09);
$mesMp3[] = new Mp3("2 La pluie","Claude Nougaro", 3.54);
$mesMp3[] = new Mp3("1 Gaston y'a le telefon qui son","Nino Ferrer", 2.97);

usort($mesMp3,array("Mp3","CompareToTitre"));
foreach ($mesMp3 as $unMp3){
    echo $unMp3."\n";
}
?>
